import axios from '@/utils/request'
const base = '/userserver'

export function listDevice(params) {
  return axios({
    url: `${base}/devices`,
    method: 'get',
    params: params
  })
}

export function deleteDevice(id) {
  return axios({
    url: `${base}/devices/` + id,
    method: 'delete'
  })
}

export function modifyDevice(id, data) {
  return axios({
    url: `${base}/devices/` + id,
    method: 'put',
    data
  })
}
